// 导入请求实例
import request from '@/utils/request'
// 查部门
export const getDepartmentListData = () =>
  request({
    url: '/company/department'
  })
// 查部门信息
export const getDepartmentInfoData = (id) =>
  request({
    url: '/company/department' + id
  })
// 增加查部门信息
export const addDepartmentData = (data) =>
  request({
    url: '/company/department',
    method: 'POST',
    data
  })
// 修改查部门信息
export const editDepartmentData = (data) =>
  request({
    url: '/company/department' + data.id,
    method: 'PUT',
    data
  })
// 删除查部门信息
export const delDepartmentInfoData = () =>
  request({
    url: '/company/department' + id,
    method: 'DELETE'
  })
